<?php

return [
    'address' => 'all', //买家收货地址
    'admin_access' => 'pass',
    'admin_group' => 'pass',
    'admin_node' => 'pass',
    'admin_node_load' => 'pass',
    'admin_role' => 'pass',
    'admin_role_user' => 'pass',
    'admin_user' => 'pass',
    'album_class' => [
        'rule' => 'common',
        'images' => 'aclass_cover',
        'fields' => [
            'aclass_cover' => ['method', 'image_path_formate', 'goods', 'aclass_cover']
        ]
    ],
    'album_pic' => [
        'rule' => 'common',
        'images' => 'apic_cover',
        'fields' => [
            'apic_cover' => ['method', 'image_path_formate', 'goods', 'apic_cover']
        ]
    ],
    'area' => 'pass',
    'article' => 'pass',
    'cart' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image']
        ]
    ],
    'config' => 'pass',
    'cron' => 'pass',
    'daddress' => 'all',
    'delivery_order' => 'wait',
    'evaluate_goods' => [
        'rule' => 'common',
        'images' => 'geval_goodsimage',
        'fields' => [
            'geval_goodsimage' => ['method', 'image_path_formate', 'goods', 'geval_goodsimage']
        ]
    ],
    'evaluate_store' => 'all',
    'exppoints_log' => 'all',
    'express' => 'all',
    'favorites' => 'all',
    'file' => 'pass',
    'goods' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'id' => 'goods_id',
            'commonid' => 'goods_commonid',
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id'],
            'gc_id_1' => ['method', 'get_cate', 'goods_class', 'gc_id_1'],
            'gc_id_2' => ['method', 'get_cate', 'goods_class', 'gc_id_2'],
            'gc_id_3' => ['method', 'get_cate', 'goods_class', 'gc_id_3'],
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image'],
            'areacode' => 'areaid_2' // to do check
        ]
    ],
    'goods_attr_index' => [
        'rule' => 'common',
        'fields' => [
            'commonid' => 'goods_commonid',
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id'],
            'type_id' => ['method', 'get_cate', 'goods_type', 'type_id'],
        ]
    ],
    'goods_brand' => [
        'rule' => 'common',
        'table' => 'brand',
        'images' => 'brand_pic',
        'fields' => [
            'id' => 'brand_id',
            'name' => 'brand_name',
            'initial' => 'brand_initial',
            'class_id' => ['method', 'get_cate', 'goods_type', 'class_id'],
            'class_name' => 'brand_class',
            'pic' => ['method', 'image_path_formate', 'brand', 'brand_pic'],
            'sort' => ['method', 'fix_number', 'brand_sort', 0, 255],
            'recommend' => 'brand_recommend',
            'apply' => 'brand_apply'
        ]
    ],
    'goods_browse' => [
        'rule' => 'common',
        'fields' => [
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id'],
            'gc_id_1' => ['method', 'get_cate', 'goods_class', 'gc_id_1'],
            'gc_id_2' => ['method', 'get_cate', 'goods_class', 'gc_id_2'],
            'gc_id_3' => ['method', 'get_cate', 'goods_class', 'gc_id_3']
        ]
    ],
    'goods_common' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'id' => 'goods_commonid',
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id'],
            'gc_id_1' => ['method', 'get_cate', 'goods_class', 'gc_id_1'],
            'gc_id_2' => ['method', 'get_cate', 'goods_class', 'gc_id_2'],
            'gc_id_3' => ['method', 'get_cate', 'goods_class', 'gc_id_3'],
            'type_id' => ['method', 'get_cate', 'goods_type', 'type_id'],
            'goods_body' => ['method', 'formate_content', 'goods_body'],
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image'],
            'areacode' => 'areaid_2' // to do check
        ]
    ],
    'goods_common_static' => [
        'rule' => 'common',
        'table' => 'tmp_goods_common_static',
        'fields' => [
            'commonid' => 'goods_commonid'
        ]
    ],
    'goods_images' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'id' => 'goods_images_id',
            'commonid' => 'goods_commonid',
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image']
        ]
    ],
    'goods_type_brand' => [
        'rule' => 'common',
        'table' => 'type_brand',
        'fields' => [
            'type_id' => ['method', 'get_cate', 'goods_type', 'type_id'],
        ]
    ],
    'goods_type_spec' => [
        'rule' => 'common',
        'table' => 'type_spec',
        'fields' => [
            'type_id' => ['method', 'get_cate', 'goods_type', 'type_id'],
            'spec_id' => 'sp_id'
        ]
    ],
    'invoice' => 'all',
    'login_log' => 'pass',
    'member' => [
        'rule' => 'common',
        'images' => 'member_avatar',
        'fields' => [
            'id' => 'member_id',
            'name' => 'member_name',
            'realname' => 'member_truename',
            'avatar' => ['method', 'image_path_formate', 'member', 'member_avatar'],
            'sex' => 'member_sex',
            'birthday' => 'member_birthday',
            'passwd' => 'member_passwd',
            'paypwd' => 'member_paypwd',
            'email' => 'member_email',
            'email_bind' => 'member_email_bind',
            'mobile' => 'member_mobile',
            'mobile_bind' => 'member_mobile_bind',
            'register_time' => 'member_time',
            'last_login_time' => 'member_login_time',
            'last_login_ip' => 'member_login_ip',
            'available_predeposit',
            'freeze_predeposit',
            'status' => 'member_state',
            'exppoints' => 'member_points',
            'company' => 'member_company'
        ]
    ],
    'member_common' => 'all',
    'member_msg_setting' => 'all',
    'member_msg_tpl' => 'all',
    'message' => 'all',
    'model' => 'pass',
    'node_map' => 'pass',
    'offpay_area' => 'all',
    'order' => 'all',
    'order_bill' => 'all',
    'order_common' => 'all',
    'order_goods' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id'],
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image']
        ]
    ],
    'order_log' => 'all',
    'order_pay' => [
        'rule' => 'common',
        'images' => 'order_crimg',
        'fields' => [
            'order_crimg' => ['method', 'image_path_formate', 'order_pay', 'order_crimg']
        ]
    ],
    'order_statis' => 'all',
    'payment' => 'all',
    'pd_log' => 'all',
    'points_log' => 'all',
    'rcb_log' => 'all',
    'refund_return' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image']
        ]
    ],
    'seller' => 'all',
    'seller_group' => 'all',
    'seller_log' => 'all',
    'spec_index' => 'all',
    'spec_value' => [
        'rule' => 'common',
        'fields' => [
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id']
        ]
    ],
    'stat_member' => 'all',
    'stat_order' => [
        'rule' => 'common',
        'fields' => [
            'grade_id' => ['method', 'get_cate', 'store_grade', 'grade_id'],
            'sc_id' => ['method', 'get_cate', 'store_class', 'sc_id']
        ]
    ],
    'stat_ordergoods' => [
        'rule' => 'common',
        'images' => 'goods_image',
        'fields' => [
            'grade_id' => ['method', 'get_cate', 'store_grade', 'grade_id'],
            'sc_id' => ['method', 'get_cate', 'store_class', 'sc_id'],
            'gc_id' => ['method', 'get_cate', 'goods_class', 'gc_id'],
            'gc_parentid_1' => ['method', 'get_cate', 'goods_class', 'gc_parentid_1'],
            'gc_parentid_2' => ['method', 'get_cate', 'goods_class', 'gc_parentid_2'],
            'gc_parentid_3' => ['method', 'get_cate', 'goods_class', 'gc_parentid_3'],
            'goods_image' => ['method', 'image_path_formate', 'goods', 'goods_image']
        ]
    ],
    'store' => [
        'rule' => 'common',
        'images' => 'store_label,store_banner,store_avatar,store_slide,store_stamp',
        'fields' => [
            'id' => 'store_id',
            'name' => 'store_name',
            'grade_id' => ['method', 'get_cate', 'store_grade', 'grade_id'],
            'sc_id' => ['method', 'get_cate', 'store_class', 'sc_id'],
            'company_name' => 'store_company_name',
            'areacode' => 'province_id',
            'address' => 'store_address',
            'zip' => 'store_zip',
            'close_info' => 'store_close_info',
            'sort' => ['method', 'fix_number', 'store_sort', 0, 255],
            'time' => 'store_time',
            'end_time' => ['function', 'intval', 'store_end_time'],
            'label' => ['method', 'image_path_formate', 'store_label', 'store_label'],
            'banner' => ['method', 'image_path_formate', 'store_banner', 'store_banner'],
            'avatar' => ['method', 'image_path_formate', 'store_avatar', 'store_avatar'],
            'keywords' => 'store_keywords',
            'description' => 'store_description',
            'qq' => 'store_qq',
            'phone' => 'store_phone',
            'credit' => 'store_credit',
            'desccredit' => 'store_desccredit',
            'servicecredit' => 'store_servicecredit',
            'deliverycredit' => 'store_deliverycredit',
            'collect' => 'store_collect',
            'slide' => ['method', 'image_path_formate', 'store_slide', 'store_slide'],
            'store_stamp' => ['method', 'image_path_formate', 'store_stamp', 'store_stamp'],
            'slide_url' => 'store_slide_url',
            'workingtime' => 'store_workingtime'
        ]
    ],
    'store_bind_class' => [
        'rule' => 'common',
        'fields' => [
            'id' => 'bid',
            'class_1' => ['method', 'get_cate', 'goods_class', 'class_1'],
            'class_2' => ['method', 'get_cate', 'goods_class', 'class_2'],
            'class_3' => ['method', 'get_cate', 'goods_class', 'class_3'],
        ]
    ],
    'store_extend' => 'all',
    'store_goods_class' => [
        'rule' => 'common',
        'fields' => [
            'id' => 'stc_id',
            'name' => 'stc_name',
            'parent_id' => 'stc_parent_id',
            'state' => 'stc_state',
            'store_id' => 'stc_store_id',
            'sort' => ['method', 'fix_number', 'stc_sort', 0, 255],
        ]
    ],
    'store_joinin' => [
        'rule' => 'common',
        'images' => 'business_licence_number_electronic,organization_code_electronic,general_taxpayer,bank_licence_electronic,tax_registration_certificate_electronic,paying_money_certificate',
        'fields' => [
            'company_area_code' => 'company_province_id',
            'business_licence_number_electronic' => ['method', 'image_path_formate', 'joinin', 'business_licence_number_electronic'],
            'organization_code_electronic' => ['method', 'image_path_formate', 'joinin', 'organization_code_electronic'],
            'general_taxpayer' => ['method', 'image_path_formate', 'joinin', 'general_taxpayer'],
            'bank_licence_electronic' => ['method', 'image_path_formate', 'joinin', 'bank_licence_electronic'],
            'tax_registration_certificate_electronic' => ['method', 'image_path_formate', 'joinin', 'tax_registration_certificate_electronic'],
            'paying_money_certificate' => ['method', 'image_path_formate', 'joinin', 'paying_money_certificate']
        ]
    ],
    'store_msg' => 'all',
    'store_msg_read' => 'all',
    'store_msg_setting' => 'all',
    'store_msg_tpl' => 'all',
    'store_plate' => 'all',
    'store_reopen' => 'all',
    'store_waybill' => 'all',
    'transport' => 'all',
    'transport_extend' => 'all',
    'type' => 'pass',
    'upload' => 'pass',
    'waybill' => [
        'rule' => 'common',
        'images' => 'waybill_image',
        'fields' => [
            'waybill_image' => ['method', 'image_path_formate', 'waybill', 'waybill_image']
        ]
    ],
    'web_log_001' => 'pass',
    'web_log_all' => 'pass'
];
